// 自定义插件
import * as directives from "./directives"
import wxjButton from "./components/wxjButton/index.vue"

let show = () => console.log("show")

export default {
    install(app) {
        // 原型绑定 属性或方法
        app.config.globalProperties=show

        // 注册全局指令
        Object.keys(directives).forEach(k => app.directive(k, directives[k]))

        // 注册全局组件
        app.component("wxjButton", wxjButton)

    }
}
